// ActionScript file
// ADMINISTRATOR
import components.GlavniPanel;

private function onLogInAdministrator(e:Event):void{		 			
	panels.push(creator.createPanel("Glavni Panel", 0, 200, 300, screen.width-202, screen.height-380, true, false, "Panel"));
	panels.push(creator.createPanel("Admin Panel", 0, 200, 300, screen.width-402, screen.height-380, true, false, "AdminPanel"));
	removeChild(panels[0]);
	showAdministratorPanels();
	panels[1].canClose(false);
	panels[2].canClose(false);
}
 		
private function showAdministratorPanels():void {
	addChild(googleInput);
	addChild(googleImage);
	addChild(wikipediaImage);
	addChild(wikipediaInput);
	addChild(rapidshareImage);
	addChild(rapidshareInput);
	for(var i:Number=1; i<panels.length; i++){
		addChild(panels[i]);
		panels[i].backButton.addEventListener(MouseEvent.CLICK, taskbarButtonClicked);				
	 }
	 glavniPanel = new GlavniPanel(panels[1]);
	 adminPanel = new AdminPanel(panels[2]);
}